<?php
namespace App\Services\Qrcode;

use App\Services\ProjectValidate;
/**
 * @Author: Marte
 * @Date:   2017-05-27 16:25:13
 * @Last Modified by:   ws
 * @Last Modified time: 2018-06-12 10:16
 */
class ValidateQrcode extends ProjectValidate
{
    /**
     * 自定义子类初始化
     * @param array $initData
     * @return mixed
     */
    public function initValidate($initData = [])
    {
        /*if (!empty($initData['c_id'])) {
            $this->rules['c_id']  = 'numeric|min:0';
        }*/
    }
    
    public $rules = [
        'token'            => 'alpha_num|min:32|max:32',
        'appkey'    => 'alpha_num|min:32|max:32',
        'type'          => 'required|numeric',
        'code_id'          => 'required',
        'url'        => 'required|url',
       
    ];

    public $messages = [
       
    ];

    /**
     * @var array 上面规则中定义的 key 的名字
     */
    public $attributes = [
      
    ];
}